package com.qst.rongxiaoserver.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.Date;

@TableName("tb_knowledge")
@Data
public class KnowledgeModel {

    @TableId(type = IdType.AUTO)
    private Integer knowledgeId;
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "内容不能为空")
    private String content;
    private String picPath;
    private String ownName;
    private Date createTime;
    private Date updateTime;

}
